@import '~@/style/base.less';
@header_height: 130px;

.store_header {
  position: fixed;
  z-index: 0;
  left: 0;
  top: 0;
  background: linear-gradient(134deg,#ffe694,#ffd343);
  width: 100%;
  height: @header_height;
}
.store_page {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.store_header_hidden {
  height: 224px;
  flex: 0 0 auto;
}
.store_header_wrap {
  position: fixed;
  background-color: #fff;
  z-index: 8;
  left: 0;
  right: 0;
  top: 0;
}
.store_search {
  position: relative;
  display: flex;
  flex: 1 1 253px;
  height: 68px;
  background: #F7F8F9;
  border-radius: 34px;
  margin: 0 32px 0 0;
  label {
    position: absolute;
    left: 16px;
    width: 300px;
    height: 68px;
    line-height: 68px;
    color: @color_subtext;
    padding-left: 60px;
    background: url('~@/assets/images/home_Shape@2x.png') 16px center no-repeat;
    background-size: 28px auto;
    transition: 0.5s;
    transition-property: left, margin-left;
  }
  input[type='text'] {
    border: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    padding-left: 60px;
    box-sizing: border-box;
  }
  &.focus label {
    left: 0;
    margin-left: 0;
  }
  :global {
    animation: fadeInLeft 600ms;
  }
}
.search {
  .frow(flex-start, center);
  padding: 31px 24px;
}
.call_btn {
  height: 46px;
  line-height: 46px;
  background: #FFFFFF;
  border-radius: 23px;
  border: 1px solid @color_theme;
  padding: 0 27px;
  font-size: 24px;
  color: @color_theme;
  margin-right: 18px;
}
.order_icon {
  background-image: url('~@/assets/images/order_icon.png');
  background-size: 58px auto;
  background-position: 0 center;
  width: 58px;
  height: 58px;
}

.goods_wrap {
  flex: 1;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  .content {
    >div {
        display: flex;
        flex: 1;
        overflow: hidden;
    }
    .frow(flex-start, stretch);
    flex: 1;
    font-size: 24px;
    overflow: hidden;
  }
  .hasCartList {
    height: 56px;
    width: 100%;
  }
}
.store_footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: #f7f8f9;
  color: #999;
  font-size: 28px;
  text-align: center;
  line-height: 76px;
  z-index: 5;
}
.empty_store_footer {
  height: 76px;
  width: 100%;
}
// .empty_wrap {
//   position: absolute;
//   top: 50%;
//   left: 50%;
//   bottom: 0;
//   right: 0;
//   transform: translate(-50%, -50%);
// }



.search_wrap {
  display: flex;
  flex-flow: column;
  height: 100%;
  ul {
    padding: 0 24px;
    &.hasFooter {
      padding-bottom: 128px ;
    }
  }
}

.search_input {
  flex: 1 1;
  background: @color_search_bg;
  border-radius: 16px;
  padding: 0 16px;
  input[type='text'] {
    width: 100%;
    height: 60px;
    border: 0;
    padding-left: 60px;
    background: url('~@/assets/images/home_Shape@2x.png') 16px center no-repeat;
    background-size: 28px auto;
    color: @color_text;
  }
 
}

._item_box {
  position: relative;
  background: #fff;
  border-radius: 6px;
  margin-bottom: 24px;
  .frow(flex-start, stretch);
  padding: 36px 0;
 .listAnimRight();
  .img_box {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
    .img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .info_box {
    margin-left: 8px;
    padding-right: 24px;
    flex: 1;
    .title {
      font-size: 30px;
      color: @color_text;
    }
    p {
      min-height: 33px;
      color: @color_subtext;
      .frow( space-between, flex-between);
    }
    .price{
      color: @color_price;
      margin-top: 39px;
    }
  }
  .btn() {
    position: absolute;
    right: 24px;
    bottom: 23px;
    height: 36px;
    outline: none;
    border: 0;
  }
  .add_cart_icon_wrap{ 
    .btn() 
  }
  .add_cart {
    .btn();
    width: 36px;
    font-size: 0;
    background: url('~@/assets/images/home_add@2x.png') center no-repeat;
    background-size: 36px auto;
    transition: 0.5s;
    transition-property: transform;
    &:active {
      transform: scale(0.8);
    }
  }
  .choose_btn {
    .btn();
    color: #ffb61d;
    background: #FFFBF1;
    font-size: 26px;
    padding: 0 20px;
    border-radius: 16px;
  }
}

.btn() {
  position: absolute;
  right: 000px;
  bottom: 23px;
  height: 36px;
  outline: none;
  border: 0;
}

.add_cart_icon_wrap{ 
  .btn() 
}
.num_picker {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  .sub,
  .add {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 0;
    background-color: transparent;
    background-size: 36px auto;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    font-size: 0;
    transition: 0.3s;
    transition-property: transform;
    &:active {
      transform: scale(0.8);
    }
  }
  .sub {
    background-image: url('~@/assets/images/details_jian@2x.png');
    &:disabled {
      background-image: url('~@/assets/images/details_jian_off@2x.png');
    }
  }
  .add {
    background-image: url('~@/assets/images/home_add@2x.png');
    &:disabled {
      background-image: url('~@/assets/images/home_add_off@2x.png');
    }
  }
  .num {
    border: 0;
    width: 60px;
    font-size: 28px;
    color: #333333;
    text-align: center;
    &.hideNumber {
      opacity: 0;
    }
  }
}